package com.antu.first.bean;

import java.util.Date;

/**
 * 用户评论
 * Created by Administrator on 2018/3/3.
 */
public class Comment {

    private int coId;//Id

    private String coContent;//评论内容

    private Date coTime;//评论时间

    private User user;//评论人

    private Reply reply;//对应回复

    private Hotel hotel;//对应酒店

    private Indent indent;//对应订单

    private int coStar;//评论星级

    private int coType;//评论类型，好中差

    public Comment() {
    }

    public Comment(int coId, String coContent, Date coTime, User user, Reply reply, Hotel hotel, Indent indent, int coStar, int coType) {

        this.coId = coId;
        this.coContent = coContent;
        this.coTime = coTime;
        this.user = user;
        this.reply = reply;
        this.hotel = hotel;
        this.indent = indent;
        this.coStar = coStar;
        this.coType = coType;
    }

    public int getCoId() {

        return coId;
    }

    public void setCoId(int coId) {
        this.coId = coId;
    }

    public String getCoContent() {
        return coContent;
    }

    public void setCoContent(String coContent) {
        this.coContent = coContent;
    }

    public Date getCoTime() {
        return coTime;
    }

    public void setCoTime(Date coTime) {
        this.coTime = coTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Reply getReply() {
        return reply;
    }

    public void setReply(Reply reply) {
        this.reply = reply;
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }

    public Indent getIndent() {
        return indent;
    }

    public void setIndent(Indent indent) {
        this.indent = indent;
    }

    public int getCoStar() {
        return coStar;
    }

    public void setCoStar(int coStar) {
        this.coStar = coStar;
    }

    public int getCoType() {
        return coType;
    }

    public void setCoType(int coType) {
        this.coType = coType;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "coId=" + coId +
                ", coContent='" + coContent + '\'' +
                ", coTime=" + coTime +
                ", user=" + user +
                ", reply=" + reply +
                ", hotel=" + hotel +
                ", indent=" + indent +
                ", coStar=" + coStar +
                ", coType=" + coType +
                '}';
    }
}
